package com.xnfh.home.viewmodel

import com.xnfh.framework.base.BaseRepository
import com.xnfh.framework.bean.FeedBackFieldBean
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.api.ApiService
import com.xnfh.network.manager.ApiManager
import okhttp3.MultipartBody

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2024/1/4 15:29
 * @UpdateUser: ziheng
 * @UpdateDate: 2024/1/4 15:29
 * @UpdateRemark: 更新说明
 */
class FeedBackViewModelRes : BaseRepository() {
    suspend fun requestFeedBackFieldList(data: RespStateData<List<FeedBackFieldBean>>) = dealResp(
        { ApiManager.api.requestFeedBackFieldList() }, data
    )

    suspend fun requestFeedBack(parts: List<MultipartBody.Part>, data: RespStateData<Any>) = dealResp(
        { ApiManager.api.requestFeedBack(parts) }, data
    )
}